home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / ingame_controls.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  30.8 KB  |  1,489 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ SETUP MENU \\
  5.  
  6. menuDef {
  7.         name "ingame_controls"
  8.         visible 0
  9.         fullscreen 0
  10.             outOfBoundsClick            // this closes the window if it gets a click out of the rectangle
  11.         rect 131 30 375 335
  12.         focusColor 1 .75 0 1
  13.         style 1
  14.         border 1
  15.     onClose {
  16.         uiScript saveControls
  17.     }
  18.     onopen { hide grpControls ; show look ; uiScript loadControls }
  19.  
  20. itemDef {
  21.     name window
  22.     rect 10 15 355 320
  23.     style 1
  24.     backcolor 0 .1 0 1
  25.     visible 1
  26.     decoration
  27.     }
  28.  
  29.  
  30.  
  31. // FRAME    //
  32.  
  33.  
  34. itemDef {
  35.     name window
  36.     rect 0 10 64 64
  37.     style 3
  38.     background "ui/assets/ingameleftcorner.tga"
  39.     visible 1
  40.     decoration
  41.     }
  42. itemDef {
  43.     name window
  44.     rect 64 10 96 8
  45.     style 3
  46.     background "ui/assets/ingametop.tga"
  47.     visible 1
  48.     decoration
  49.     }
  50. itemDef {
  51.     name window
  52.     rect 219 10 96 8
  53.     style 3
  54.     background "ui/assets/ingametop.tga"
  55.     visible 1
  56.     decoration
  57.     }
  58. itemDef {
  59.     name window
  60.     rect 311 10 64 64
  61.     style 3
  62.     background "ui/assets/ingamerightcorner.tga"
  63.     visible 1
  64.     decoration
  65.     }
  66. itemDef {
  67.     name window
  68.     rect 155 0 64 16
  69.     style 3
  70.     background "ui/assets/ingameconnection.tga"
  71.     visible 1
  72.     decoration
  73.     }
  74. itemDef {
  75.     name window
  76.     rect 0 274 64 64
  77.     style 3
  78.     background "ui/assets/ingameleftcornerb.tga"
  79.     visible 1
  80.     decoration
  81.     }
  82. itemDef {
  83.     name window
  84.     rect 311 274 64 64
  85.     style 3
  86.     background "ui/assets/ingamerightcornerb.tga"
  87.     visible 1
  88.     decoration
  89.     }
  90.  
  91. itemDef {
  92.     name window
  93.     rect 0 64 16 64
  94.     style 3
  95.     background "ui/assets/ingameleft.tga"
  96.     visible 1
  97.     decoration
  98.     }
  99.  
  100.  
  101. itemDef {
  102.     name window
  103.     rect 0 128 16 64
  104.     style 3
  105.     background "ui/assets/ingameleft.tga"
  106.     visible 1
  107.     decoration
  108.     }
  109.  
  110. itemDef {
  111.     name window
  112.     rect 0 192 16 96
  113.     style 3
  114.     background "ui/assets/ingameleft.tga"
  115.     visible 1
  116.     decoration
  117.     }
  118.  
  119. itemDef {
  120.     name window
  121.     rect 359 64 16 64
  122.     style 3
  123.     background "ui/assets/ingameright.tga"
  124.     visible 1
  125.     decoration
  126.     }
  127.  
  128.  
  129. itemDef {
  130.     name window
  131.     rect 359 128 16 64
  132.     style 3
  133.     background "ui/assets/ingameright.tga"
  134.     visible 1
  135.     decoration
  136.     }
  137.  
  138. itemDef {
  139.     name window
  140.     rect 359 192 16 96
  141.     style 3
  142.     background "ui/assets/ingameright.tga"
  143.     visible 1
  144.     decoration
  145.     }
  146.  
  147.  
  148.  
  149. itemDef {
  150.     name window
  151.     rect 64 330 96 8
  152.     style 3
  153.     background "ui/assets/ingamebottom.tga"
  154.     visible 1
  155.     decoration
  156.     }
  157. itemDef {
  158.     name window
  159.     rect 160 330 64 8
  160.     style 3
  161.     background "ui/assets/ingamebottom.tga"
  162.     visible 1
  163.     decoration
  164.     }
  165. itemDef {
  166.     name window
  167.     rect 224 330 87 8
  168.     style 3
  169.     background "ui/assets/ingamebottom.tga"
  170.     visible 1
  171.     decoration
  172.     }
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190. itemDef {
  191.           name keyBindStatus
  192.           rect 0 55 300 15 
  193.     ownerdraw UI_KEYBINDSTATUS
  194.     text " "      
  195.     forecolor 1 .75 0 1
  196.     textscale .20
  197.     textalignx 187
  198.     textalign 1
  199.     textaligny 10
  200.     visible 0
  201.           decoration 
  202.     }
  203.  
  204.  
  205. itemDef {
  206.     name ctr_look
  207.     text "Look"
  208.     type 1
  209.     textscale .25
  210.     group grpControlbutton
  211.     style WINDOW_STYLE_FILLED
  212.     background "ui/assets/button_back.tga"
  213.     rect 25 25 50 20
  214.     textalign 1
  215.     textalignx 25
  216.     textaligny 16
  217.     forecolor 1 1 1 1
  218.     backcolor .37 .1 .1 1 
  219.     visible 1
  220.     action { hide grpControls ; show look }
  221.     mouseEnter { setitemcolor ctr_look backcolor .1 .37 .1 1 }
  222.           mouseExit { setitemcolor ctr_look backcolor .37 .1 .1 1 }
  223.     }
  224.  
  225.     itemDef {
  226.               name look
  227.         group grpControls
  228.               type ITEM_TYPE_BIND
  229.         text "Lookup:"
  230.         cvar "+lookup"
  231.         rect 0 85 320 15 
  232.               textalign ITEM_ALIGN_RIGHT
  233.               textalignx 187
  234.         maxPaintChars 20
  235.               textaligny 12        
  236.         textscale .25        
  237.               forecolor 1 1 1 1
  238.               visible 0 
  239.         mouseenter { show keyBindStatus }
  240.         mouseexit { hide keyBindStatus }
  241.             }
  242.  
  243.     itemDef {
  244.               name look
  245.         group grpControls
  246.               type ITEM_TYPE_BIND
  247.         text "Look Down:"
  248.         cvar "+lookdown"
  249.         rect 0 100 320 12 
  250.               textalign ITEM_ALIGN_RIGHT
  251.               textalignx 187
  252.         maxPaintChars 20
  253.               textaligny 12
  254.         textscale .25        
  255.               forecolor 1 1 1 1
  256.               visible 0 
  257.         mouseenter { show keyBindStatus }
  258.         mouseexit { hide keyBindStatus }
  259.             }
  260.  
  261.     itemDef {
  262.               name look
  263.         group grpControls
  264.               type ITEM_TYPE_BIND
  265.         text "Mouse Look:"
  266.         cvar "+mlook"
  267.         rect 0 115 320 15
  268.               textalign ITEM_ALIGN_RIGHT
  269.               textalignx 187
  270.         maxPaintChars 20
  271.               textaligny 12
  272.         textscale .25        
  273.               forecolor 1 1 1 1
  274.               visible 0 
  275.         mouseenter { show keyBindStatus }
  276.         mouseexit { hide keyBindStatus }
  277.             }
  278.     
  279.     itemDef {
  280.               name look
  281.         group grpControls
  282.               type ITEM_TYPE_BIND
  283.         text "Centerview:"
  284.         cvar "centerview"
  285.         rect 0 130 320 15
  286.               textalign ITEM_ALIGN_RIGHT
  287.               textalignx 187
  288.         maxPaintChars 20
  289.               textaligny 12
  290.         textscale .25        
  291.               forecolor 1 1 1 1
  292.               visible 0 
  293.         mouseenter { show keyBindStatus }
  294.         mouseexit { hide keyBindStatus }
  295.             }
  296.  
  297.     itemDef {
  298.               name look
  299.         group grpControls
  300.               type ITEM_TYPE_BIND
  301.         text "ZoomView:"
  302.         cvar "+zoom"
  303.         rect 0 145 320 15
  304.               textalign ITEM_ALIGN_RIGHT
  305.               textalignx 187
  306.         maxPaintChars 20
  307.               textaligny 12
  308.         textscale .25        
  309.               forecolor 1 1 1 1
  310.               visible 0
  311.         mouseenter { show keyBindStatus }
  312.         mouseexit { hide keyBindStatus } 
  313.             }
  314.  
  315.     itemDef {
  316.               name look
  317.         group grpControls
  318.               type ITEM_TYPE_YESNO
  319.         text "Free Look:"
  320.         cvar "cl_freelook"
  321.         rect 0 160 320 15
  322.               textalign ITEM_ALIGN_RIGHT
  323.               textalignx 187
  324.         maxPaintChars 20
  325.               textaligny 12
  326.         textscale .25        
  327.               forecolor 1 1 1 1
  328.               visible 0 
  329.         mouseenter { show yesno_message }
  330.         mouseexit { hide yesno_message }
  331.             }
  332.  
  333.  
  334. itemDef {
  335.     name ctr_move
  336.     text "Move"
  337.     type 1
  338.     textscale .25
  339.     group grpControlbutton
  340.     style WINDOW_STYLE_FILLED
  341.     background "ui/assets/button_back.tga"
  342.     rect 80 25 50 20
  343.     textalign 1
  344.     textalignx 25
  345.     textaligny 16
  346.     forecolor 1 1 1 1
  347.     backcolor .37 .1 .1 1 
  348.     visible 1
  349.     action { hide grpControls ; show move }
  350.     mouseEnter { setitemcolor ctr_move backcolor .1 .37 .1 1 }
  351.           mouseExit { setitemcolor ctr_move backcolor .37 .1 .1 1 }
  352.     }
  353.  
  354.  
  355.      itemDef {
  356.               name move
  357.         group grpControls
  358.               type ITEM_TYPE_YESNO
  359.         text "Always Run:"
  360.         cvar "cl_run"
  361.         rect 0 85 320 15
  362.               textalign ITEM_ALIGN_RIGHT
  363.               textalignx 187
  364.         maxPaintChars 20
  365.               textaligny 12
  366.         textscale .25        
  367.               forecolor 1 1 1 1
  368.               visible 0 
  369.         mouseenter { show yesno_message }
  370.         mouseexit { hide yesno_message }
  371.             }
  372.     itemDef {
  373.               name move
  374.         group grpControls
  375.               type ITEM_TYPE_BIND
  376.         text "Run / Walk:"
  377.         cvar "+speed"
  378.         rect 0 100 320 15
  379.               textalign ITEM_ALIGN_RIGHT
  380.               textalignx 187
  381.         maxPaintChars 20
  382.               textaligny 12
  383.         textscale .25        
  384.               forecolor 1 1 1 1
  385.               visible 0 
  386.             }
  387.  
  388.     itemDef {
  389.               name move
  390.         group grpControls
  391.               type ITEM_TYPE_BIND
  392.         text "Forward:"
  393.         cvar "+forward"
  394.         rect 0 115 320 15
  395.               textalign ITEM_ALIGN_RIGHT
  396.               textalignx 187
  397.         maxPaintChars 20
  398.               textaligny 12
  399.         textscale .25        
  400.               forecolor 1 1 1 1
  401.               visible 0 
  402.         mouseenter { show keyBindStatus }
  403.         mouseexit { hide keyBindStatus }
  404.             }
  405.  
  406.     itemDef {
  407.               name move
  408.         group grpControls
  409.               type ITEM_TYPE_BIND
  410.         text "Backpedal:"
  411.         cvar "+back"
  412.         rect 0 130 320 15
  413.               textalign ITEM_ALIGN_RIGHT
  414.               textalignx 187
  415.         maxPaintChars 20
  416.               textaligny 12
  417.         textscale .25        
  418.               forecolor 1 1 1 1
  419.               visible 0 
  420.         mouseenter { show keyBindStatus }
  421.         mouseexit { hide keyBindStatus }
  422.             }
  423.     
  424.     itemDef {
  425.               name move
  426.         group grpControls
  427.               type ITEM_TYPE_BIND
  428.         text "Move Left:"
  429.         cvar "+moveleft"
  430.         rect 0 145 320 15
  431.               textalign ITEM_ALIGN_RIGHT
  432.               textalignx 187
  433.         maxPaintChars 20
  434.               textaligny 12
  435.         textscale .25        
  436.               forecolor 1 1 1 1
  437.               visible 0 
  438.         mouseenter { show keyBindStatus }
  439.         mouseexit { hide keyBindStatus }
  440.             }
  441.  
  442.     itemDef {
  443.               name move
  444.         group grpControls
  445.               type ITEM_TYPE_BIND
  446.         text "Move Right:"
  447.         cvar "+moveright"
  448.         rect 0 160 320 15
  449.               textalign ITEM_ALIGN_RIGHT
  450.               textalignx 187
  451.         maxPaintChars 20
  452.               textaligny 12
  453.         textscale .25        
  454.               forecolor 1 1 1 1
  455.               visible 0 
  456.         mouseenter { show keyBindStatus }
  457.         mouseexit { hide keyBindStatus }
  458.             }
  459.  
  460.     itemDef {
  461.               name move
  462.         group grpControls
  463.               type ITEM_TYPE_BIND
  464.         text "Jump:"
  465.         cvar "+moveup"
  466.         rect 0 175 320 15
  467.               textalign ITEM_ALIGN_RIGHT
  468.               textalignx 187
  469.         maxPaintChars 20
  470.               textaligny 12
  471.         textscale .25        
  472.               forecolor 1 1 1 1
  473.               visible 0 
  474.         mouseenter { show keyBindStatus }
  475.         mouseexit { hide keyBindStatus }
  476.             }
  477.  
  478.     itemDef {
  479.               name move
  480.         group grpControls
  481.               type ITEM_TYPE_BIND
  482.         text "Crouch:"
  483.         cvar "+movedown"
  484.         rect 0 190 320 15
  485.               textalign ITEM_ALIGN_RIGHT
  486.               textalignx 187
  487.         maxPaintChars 20
  488.               textaligny 12
  489.         textscale .25        
  490.               forecolor 1 1 1 1
  491.               visible 0
  492.         mouseenter { show keyBindStatus }
  493.         mouseexit { hide keyBindStatus } 
  494.             }
  495.  
  496.     itemDef {
  497.               name move
  498.         group grpControls
  499.               type ITEM_TYPE_BIND
  500.         text "Turn Left:"
  501.         cvar "+left"
  502.         rect 0 205 320 15
  503.               textalign ITEM_ALIGN_RIGHT
  504.               textalignx 187
  505.         maxPaintChars 20
  506.               textaligny 12
  507.         textscale .25        
  508.               forecolor 1 1 1 1
  509.               visible 0 
  510.         mouseenter { show keyBindStatus }
  511.         mouseexit { hide keyBindStatus }
  512.             }
  513.  
  514.     itemDef {
  515.               name move
  516.         group grpControls
  517.               type ITEM_TYPE_BIND
  518.         text "Turn Right:"
  519.         cvar "+right"
  520.         rect 0 220 320 15
  521.               textalign ITEM_ALIGN_RIGHT
  522.               textalignx 187
  523.         maxPaintChars 20
  524.               textaligny 12
  525.         textscale .25        
  526.               forecolor 1 1 1 1
  527.               visible 0 
  528.         mouseenter { show keyBindStatus }
  529.         mouseexit { hide keyBindStatus }
  530.             }
  531.     
  532.     itemDef {
  533.               name move
  534.         group grpControls
  535.               type ITEM_TYPE_BIND
  536.         text "Strafe:"
  537.         cvar "+strafe"
  538.         rect 0 235 320 15
  539.               textalign ITEM_ALIGN_RIGHT
  540.               textalignx 187
  541.         maxPaintChars 20
  542.               textaligny 12
  543.         textscale .25        
  544.               forecolor 1 1 1 1
  545.               visible 0 
  546.         mouseenter { show keyBindStatus }
  547.         mouseexit { hide keyBindStatus }
  548.             }
  549.  
  550.  
  551. itemDef {
  552.     name ctr_shoot
  553.     text "Shoot"
  554.     type 1
  555.     textscale .25
  556.     group grpControlbutton
  557.     style WINDOW_STYLE_FILLED
  558.     background "ui/assets/button_back.tga"
  559.     rect 135 25 50 20
  560.     textalign 1
  561.     textalignx 25
  562.     textaligny 16
  563.     forecolor 1 1 1 1
  564.     backcolor .37 .1 .1 1 
  565.     visible 1
  566.     action { hide grpControls ; show shoot }
  567.     mouseEnter { setitemcolor ctr_shoot backcolor .1 .37 .1 1 }
  568.           mouseExit { setitemcolor ctr_shoot backcolor .37 .1 .1 1 }
  569.     }
  570.     itemDef {
  571.               name shoot                
  572.         group grpControls
  573.               type ITEM_TYPE_BIND
  574.         text "Attack:"
  575.         cvar "+attack"
  576.         rect 0 75 320 15
  577.               textalign ITEM_ALIGN_RIGHT
  578.               textalignx 187
  579.         maxPaintChars 20
  580.               textaligny 12
  581.         textscale .25        
  582.               forecolor 1 1 1 1
  583.               visible 0 
  584.         mouseenter { show keyBindStatus }
  585.         mouseexit { hide keyBindStatus }
  586.             }
  587.  
  588.     itemDef {
  589.               name shoot
  590.         group grpControls
  591.               type ITEM_TYPE_BIND
  592.         text "Previous Weapon:"
  593.         cvar "weapprev"
  594.         rect 0 90 320 15
  595.               textalign ITEM_ALIGN_RIGHT
  596.               textalignx 187
  597.         maxPaintChars 20
  598.               textaligny 12
  599.         textscale .25        
  600.               forecolor 1 1 1 1
  601.               visible 0 
  602.         mouseenter { show keyBindStatus }
  603.         mouseexit { hide keyBindStatus }
  604.             }
  605.  
  606.     itemDef {
  607.               name shoot
  608.         group grpControls
  609.               type ITEM_TYPE_BIND
  610.         text "Next Weapon:"
  611.         cvar "weapnext"
  612.         rect 0 105 320 15
  613.               textalign ITEM_ALIGN_RIGHT
  614.               textalignx 187
  615.         maxPaintChars 20
  616.               textaligny 12
  617.         textscale .25       
  618.               forecolor 1 1 1 1
  619.               visible 0 
  620.         mouseenter { show keyBindStatus }
  621.         mouseexit { hide keyBindStatus }
  622.             }
  623.     
  624.     itemDef {
  625.               name shoot
  626.         group grpControls
  627.               type ITEM_TYPE_YESNO
  628.         text "Autoswitch:"
  629.         cvar "cg_autoswitch"
  630.         rect 0 120 320 15
  631.               textalign ITEM_ALIGN_RIGHT
  632.               textalignx 187
  633.         maxPaintChars 20
  634.               textaligny 12
  635.         textscale .25        
  636.               forecolor 1 1 1 1
  637.               visible 0 
  638.         mouseenter { show yesno_message }
  639.         mouseexit { hide yesno_message }
  640.             }
  641.  
  642.     itemDef {
  643.               name shoot
  644.         group grpControls
  645.               type ITEM_TYPE_BIND
  646.         text "Gauntlet:"
  647.         cvar "weapon 1"
  648.         rect 0 135 320 15
  649.               textalign ITEM_ALIGN_RIGHT
  650.               textalignx 187
  651.         maxPaintChars 20
  652.               textaligny 12
  653.         textscale .25        
  654.               forecolor 1 1 1 1
  655.               visible 0 
  656.         mouseenter { show keyBindStatus }
  657.         mouseexit { hide keyBindStatus }
  658.             }
  659.  
  660.     itemDef {
  661.               name shoot
  662.         group grpControls
  663.               type ITEM_TYPE_BIND
  664.         text "Machinegun:"
  665.         cvar "weapon 2"
  666.         rect 0 150 320 15
  667.               textalign ITEM_ALIGN_RIGHT
  668.               textalignx 187
  669.         maxPaintChars 20
  670.               textaligny 12
  671.         textscale .25        
  672.               forecolor 1 1 1 1
  673.               visible 0 
  674.         mouseenter { show keyBindStatus }
  675.         mouseexit { hide keyBindStatus }
  676.             }
  677.  
  678.     itemDef {
  679.               name shoot
  680.         group grpControls
  681.               type ITEM_TYPE_BIND
  682.         text "Shotgun:"
  683.         cvar "weapon 3"
  684.         rect 0 165 320 15
  685.               textalign ITEM_ALIGN_RIGHT
  686.               textalignx 187
  687.         maxPaintChars 20
  688.               textaligny 12
  689.         textscale .25        
  690.               forecolor 1 1 1 1
  691.               visible 0 
  692.         mouseenter { show keyBindStatus }
  693.         mouseexit { hide keyBindStatus }
  694.             }
  695.  
  696.     itemDef {
  697.               name shoot
  698.         group grpControls
  699.               type ITEM_TYPE_BIND
  700.         text "Grenade Launcher:"
  701.         cvar "weapon 4"
  702.         rect 0 180 320 15
  703.               textalign ITEM_ALIGN_RIGHT
  704.               textalignx 187
  705.         maxPaintChars 20
  706.               textaligny 12
  707.         textscale .25        
  708.               forecolor 1 1 1 1
  709.               visible 0 
  710.         mouseenter { show keyBindStatus }
  711.         mouseexit { hide keyBindStatus }
  712.             }
  713.  
  714.     itemDef {
  715.               name shoot
  716.         group grpControls
  717.               type ITEM_TYPE_BIND
  718.         text "Rocket Launcher:"
  719.         cvar "weapon 5"
  720.         rect 0 195 320 15 
  721.               textalign ITEM_ALIGN_RIGHT
  722.               textalignx 187
  723.         maxPaintChars 20
  724.               textaligny 12
  725.         textscale .25        
  726.               forecolor 1 1 1 1
  727.               visible 0 
  728.         mouseenter { show keyBindStatus }
  729.         mouseexit { hide keyBindStatus }
  730.             }
  731.     
  732.     itemDef {
  733.               name shoot
  734.         group grpControls
  735.               type ITEM_TYPE_BIND
  736.         text "Lightning Gun:"
  737.         cvar "weapon 6"
  738.         rect 0 210 320 15
  739.               textalign ITEM_ALIGN_RIGHT
  740.               textalignx 187
  741.         maxPaintChars 20
  742.               textaligny 12
  743.         textscale .25        
  744.               forecolor 1 1 1 1
  745.               visible 0 
  746.         mouseenter { show keyBindStatus }
  747.         mouseexit { hide keyBindStatus }
  748.             }
  749.  
  750.     itemDef {
  751.               name shoot
  752.         group grpControls
  753.               type ITEM_TYPE_BIND
  754.         text "Railgun:"
  755.         cvar "Weapon 7"
  756.         rect 0 225 320 15 
  757.               textalign ITEM_ALIGN_RIGHT
  758.               textalignx 187
  759.         maxPaintChars 20
  760.               textaligny 12
  761.         textscale .25       
  762.               forecolor 1 1 1 1
  763.               visible 0 
  764.         mouseenter { show keyBindStatus }
  765.         mouseexit { hide keyBindStatus }
  766.             }
  767.     itemDef {
  768.               name shoot
  769.         group grpControls
  770.               type ITEM_TYPE_BIND
  771.         text "Plasma Gun:"
  772.         cvar "weapon 8"
  773.         rect 0 240 320 15 
  774.               textalign ITEM_ALIGN_RIGHT
  775.               textalignx 187
  776.         maxPaintChars 20
  777.               textaligny 12
  778.         textscale .25        
  779.               forecolor 1 1 1 1
  780.               visible 0 
  781.         mouseenter { show keyBindStatus }
  782.         mouseexit { hide keyBindStatus }
  783.             }
  784.     itemDef {
  785.               name shoot
  786.         group grpControls
  787.               type ITEM_TYPE_BIND
  788.         text "BFG:"
  789.         cvar "weapon 9"
  790.         rect 0 255 320 15 
  791.               textalign ITEM_ALIGN_RIGHT
  792.               textalignx 187
  793.         maxPaintChars 20
  794.               textaligny 12
  795.         textscale .25        
  796.               forecolor 1 1 1 1
  797.               visible 0 
  798.         mouseenter { show keyBindStatus }
  799.         mouseexit { hide keyBindStatus }
  800.             }
  801.  
  802.     itemDef {
  803.               name shoot
  804.         group grpControls
  805.               type ITEM_TYPE_BIND
  806.         text "Nail Gun:"
  807.         cvar "weapon 11"
  808.         rect 0 270 320 15 
  809.               textalign ITEM_ALIGN_RIGHT
  810.               textalignx 187
  811.         maxPaintChars 20
  812.               textaligny 12
  813.         textscale .25        
  814.               forecolor 1 1 1 1
  815.               visible 0 
  816.         mouseenter { show keyBindStatus }
  817.         mouseexit { hide keyBindStatus }
  818.             }
  819.  
  820.     itemDef {
  821.               name shoot
  822.         group grpControls
  823.               type ITEM_TYPE_BIND
  824.         text "Proximity Mine:"
  825.         cvar "weapon 12"
  826.         rect 0 285 320 15 
  827.               textalign ITEM_ALIGN_RIGHT
  828.               textalignx 187
  829.         maxPaintChars 20
  830.               textaligny 12
  831.         textscale .25        
  832.               forecolor 1 1 1 1
  833.               visible 0 
  834.         mouseenter { show keyBindStatus }
  835.         mouseexit { hide keyBindStatus }
  836.             }
  837.  
  838.     itemDef {
  839.               name shoot
  840.         group grpControls
  841.               type ITEM_TYPE_BIND
  842.         text "Chain Gun:"
  843.         cvar "weapon 13"
  844.         rect 0 300 320 15 
  845.               textalign ITEM_ALIGN_RIGHT
  846.               textalignx 187
  847.         maxPaintChars 20
  848.               textaligny 12
  849.         textscale .25        
  850.               forecolor 1 1 1 1
  851.               visible 0 
  852.         mouseenter { show keyBindStatus }
  853.         mouseexit { hide keyBindStatus }
  854.             }
  855.  
  856.  
  857. itemDef {
  858.     name ctr_miscellaneous
  859.     text "Misc"
  860.     type 1
  861.     textscale .25
  862.     group grpControlbutton
  863.     style WINDOW_STYLE_FILLED
  864.     background "ui/assets/button_back.tga"
  865.     rect 190 25 50 20
  866.     textalign 1
  867.     textalignx 25
  868.     textaligny 16
  869.     forecolor 1 1 1 1
  870.     backcolor .37 .1 .1 1 
  871.     visible 1
  872.     action { hide grpControls ; show misc }
  873.     mouseEnter { setitemcolor ctr_miscellaneous backcolor .1 .37 .1 1 }
  874.           mouseExit { setitemcolor ctr_miscellaneous backcolor .37 .1 .1 1 }
  875.     }
  876.  
  877.     itemDef {
  878.               name misc
  879.         group grpControls
  880.               type ITEM_TYPE_BIND
  881.         text "Show Scores:"
  882.         cvar "+scores"
  883.         rect 0 75 320 15
  884.               textalign ITEM_ALIGN_RIGHT
  885.               textalignx 187
  886.         maxPaintChars 20
  887.               textaligny 12
  888.         textscale .25                  
  889.               forecolor 1 1 1 1
  890.               visible 0 
  891.         mouseenter { show keyBindStatus }
  892.         mouseexit { hide keyBindStatus }
  893.             }
  894.     itemDef {
  895.               name misc
  896.         group grpControls
  897.               type ITEM_TYPE_BIND
  898.         text "Scroll Scores Up:"
  899.         cvar "scoresUp"
  900.         rect 0 90 320 15
  901.               textalign ITEM_ALIGN_RIGHT
  902.               textalignx 187
  903.         maxPaintChars 20
  904.               textaligny 12
  905.         textscale .25               
  906.               forecolor 1 1 1 1
  907.               visible 0 
  908.         mouseenter { show keyBindStatus }
  909.         mouseexit { hide keyBindStatus }
  910.             }
  911.     itemDef {
  912.               name misc
  913.         group grpControls
  914.               type ITEM_TYPE_BIND
  915.         text "Scroll Scores Down:"
  916.         cvar "scoresDown"
  917.         rect 0 105 320 15
  918.               textalign ITEM_ALIGN_RIGHT
  919.               textalignx 187
  920.         maxPaintChars 20
  921.               textaligny 12
  922.         textscale .25               
  923.               forecolor 1 1 1 1
  924.               visible 0 
  925.         mouseenter { show keyBindStatus }
  926.         mouseexit { hide keyBindStatus }
  927.             }
  928.  
  929.     itemDef {
  930.               name misc
  931.         group grpControls
  932.               type ITEM_TYPE_BIND
  933.         text "Use Item:"
  934.         cvar "+button2"
  935.         rect 0 120 320 15
  936.               textalign ITEM_ALIGN_RIGHT
  937.               textalignx 187
  938.         maxPaintChars 20
  939.               textaligny 12
  940.         textscale .25             
  941.               forecolor 1 1 1 1
  942.               visible 0 
  943.         mouseenter { show keyBindStatus }
  944.         mouseexit { hide keyBindStatus }
  945.             }
  946.  
  947.     
  948.     itemDef {
  949.               name misc
  950.         group grpControls
  951.               type ITEM_TYPE_SLIDER
  952.         text "Sensitivity:"
  953.         cvarfloat "sensitivity" 5 1 30
  954.         rect 0 135 320 15
  955.               textalign ITEM_ALIGN_RIGHT
  956.               textalignx 187
  957.         maxPaintChars 20
  958.               textaligny 12
  959.         textscale .25          
  960.               forecolor 1 1 1 1
  961.               visible 0 
  962.         mouseenter { show slider_message }
  963.         mouseexit { hide slider_message }
  964.             }
  965.  
  966.     itemDef {
  967.               name misc
  968.         group grpControls
  969.               type ITEM_TYPE_YESNO
  970.         text "Invert Mouse:"
  971.         cvar "ui_mousePitch"
  972.         rect 0 150 320 15
  973.               textalign ITEM_ALIGN_RIGHT
  974.               textalignx 187
  975.         maxPaintChars 20
  976.               textaligny 12
  977.         textscale .25               
  978.               forecolor 1 1 1 1
  979.               visible 0 
  980.             action { uiScript update ui_mousePitch }
  981.         mouseenter { show yesno_message }
  982.         mouseexit { hide yesno_message }
  983.             }
  984.  
  985.     itemDef {
  986.               name misc
  987.         group grpControls
  988.               type ITEM_TYPE_YESNO
  989.         text "Smooth Mouse:"
  990.         cvar "m_filter"
  991.         rect 0 165 320 15
  992.               textalign ITEM_ALIGN_RIGHT
  993.               textalignx 187
  994.         maxPaintChars 20
  995.               textaligny 12
  996.         textscale .25             
  997.               forecolor 1 1 1 1
  998.               visible 0 
  999.         mouseenter { show yesno_message }
  1000.         mouseexit { hide yesno_message }
  1001.             }
  1002.  
  1003.  
  1004.  
  1005. itemDef {
  1006.     name ctr_orders
  1007.     text "Orders"
  1008.     type 1
  1009.     textscale .25
  1010.     group grpControlbutton
  1011.     style WINDOW_STYLE_FILLED
  1012.     background "ui/assets/button_back.tga"
  1013.     rect 245 25 50 20
  1014.     textalign 1
  1015.     textalignx 25
  1016.     textaligny 16
  1017.     forecolor 1 1 1 1
  1018.     backcolor .37 .1 .1 1 
  1019.     visible 1
  1020.     action { hide grpControls ; show orders }
  1021.     mouseEnter { setitemcolor ctr_orders backcolor .1 .37 .1 1 }
  1022.           mouseExit { setitemcolor ctr_orders backcolor .37 .1 .1 1 }
  1023.     }
  1024.  
  1025.  
  1026.  
  1027.     itemDef {
  1028.               name orders
  1029.         group grpControls
  1030.             type ITEM_TYPE_BIND
  1031.         text "Next Team Member:"
  1032.         cvar "nextTeamMember"
  1033.         rect 0 85 320 15
  1034.               textalign ITEM_ALIGN_RIGHT
  1035.               textalignx 187
  1036.         maxPaintChars 20
  1037.               textaligny 12
  1038.         textscale .25        
  1039.               forecolor 1 1 1 1
  1040.               visible 0
  1041.         mouseenter { show keyBindStatus }
  1042.         mouseexit { hide keyBindStatus } 
  1043.             }
  1044.     itemDef {
  1045.               name orders
  1046.         group grpControls
  1047.               type ITEM_TYPE_BIND
  1048.         text "Next Team Order:"
  1049.         cvar "nextOrder"
  1050.         rect 0 100 320 15
  1051.               textalign ITEM_ALIGN_RIGHT
  1052.               textalignx 187
  1053.         maxPaintChars 20
  1054.               textaligny 12
  1055.         textscale .25         
  1056.               forecolor 1 1 1 1
  1057.               visible 0 
  1058.         mouseenter { show keyBindStatus }
  1059.         mouseexit { hide keyBindStatus }
  1060.             }
  1061.     itemDef {
  1062.               name orders
  1063.         group grpControls
  1064.               type ITEM_TYPE_BIND
  1065.         text "Confirm Order:"
  1066.         cvar "confirmOrder"
  1067.         rect 0 115 320 15
  1068.               textalign ITEM_ALIGN_RIGHT
  1069.               textalignx 187
  1070.         maxPaintChars 20
  1071.               textaligny 12
  1072.         textscale .25            
  1073.               forecolor 1 1 1 1
  1074.               visible 0 
  1075.         mouseenter { show keyBindStatus }
  1076.         mouseexit { hide keyBindStatus }
  1077.             }
  1078.         
  1079.     itemDef {
  1080.               name orders
  1081.         group grpControls
  1082.               type ITEM_TYPE_BIND
  1083.         text "Deny Order:"
  1084.         cvar "denyOrder"
  1085.         rect 0 130 320 15
  1086.               textalign ITEM_ALIGN_RIGHT
  1087.               textalignx 187
  1088.         maxPaintChars 20
  1089.               textaligny 12
  1090.         textscale .25            
  1091.               forecolor 1 1 1 1
  1092.               visible 0 
  1093.         mouseenter { show keyBindStatus }
  1094.         mouseexit { hide keyBindStatus }
  1095.             }
  1096.  
  1097.  
  1098.     itemDef {
  1099.               name orders
  1100.         group grpControls
  1101.               type ITEM_TYPE_BIND
  1102.         text "Offense:"
  1103.         cvar "taskOffense"
  1104.         rect 0 145 320 15
  1105.               textalign ITEM_ALIGN_RIGHT
  1106.               textalignx 187
  1107.         maxPaintChars 20
  1108.               textaligny 12
  1109.         textscale .25          
  1110.               forecolor 1 1 1 1
  1111.               visible 0 
  1112.         mouseenter { show keyBindStatus }
  1113.         mouseexit { hide keyBindStatus }
  1114.             }
  1115.  
  1116.     itemDef {
  1117.               name orders
  1118.         group grpControls
  1119.               type ITEM_TYPE_BIND
  1120.         text "Defense:"
  1121.         cvar "taskDefense"
  1122.         rect 0 160 320 15
  1123.               textalign ITEM_ALIGN_RIGHT
  1124.               textalignx 187
  1125.         maxPaintChars 20
  1126.               textaligny 12
  1127.         textscale .25          
  1128.               forecolor 1 1 1 1
  1129.               visible 0 
  1130.             }
  1131.  
  1132.     itemDef {
  1133.               name orders
  1134.         group grpControls
  1135.               type ITEM_TYPE_BIND
  1136.         text "Patrol:"
  1137.         cvar "taskPatrol"
  1138.         rect 0 175 320 15
  1139.               textalign ITEM_ALIGN_RIGHT
  1140.               textalignx 187
  1141.         maxPaintChars 20
  1142.               textaligny 12
  1143.         textscale .25            
  1144.               forecolor 1 1 1 1
  1145.               visible 0 
  1146.         mouseenter { show keyBindStatus }
  1147.         mouseexit { hide keyBindStatus }
  1148.             }
  1149.     itemDef {
  1150.               name orders
  1151.         group grpControls
  1152.               type ITEM_TYPE_BIND
  1153.         text "Camp:"
  1154.         cvar "taskCamp"
  1155.         rect 0 190 320 15
  1156.               textalign ITEM_ALIGN_RIGHT
  1157.               textalignx 187
  1158.         maxPaintChars 20
  1159.               textaligny 12
  1160.         textscale .25            
  1161.               forecolor 1 1 1 1
  1162.               visible 0 
  1163.         mouseenter { show keyBindStatus }
  1164.         mouseexit { hide keyBindStatus }
  1165.             }
  1166.     itemDef {
  1167.               name orders
  1168.         group grpControls
  1169.               type ITEM_TYPE_BIND
  1170.         text "Follow:"
  1171.         cvar "taskFollow"
  1172.         rect 0 205 320 15
  1173.               textalign ITEM_ALIGN_RIGHT
  1174.               textalignx 187
  1175.         maxPaintChars 20
  1176.               textaligny 12
  1177.         textscale .25              
  1178.               forecolor 1 1 1 1
  1179.               visible 0 
  1180.         mouseenter { show keyBindStatus }
  1181.         mouseexit { hide keyBindStatus }
  1182.             }
  1183.     itemDef {
  1184.               name orders
  1185.         group grpControls
  1186.               type ITEM_TYPE_BIND
  1187.         text "Retrieve:"
  1188.         cvar "taskRetrieve"
  1189.         rect 0 220 320 15
  1190.               textalign ITEM_ALIGN_RIGHT
  1191.               textalignx 187
  1192.         maxPaintChars 20
  1193.               textaligny 12
  1194.         textscale .25              
  1195.               forecolor 1 1 1 1
  1196.               visible 0 
  1197.         mouseenter { show keyBindStatus }
  1198.         mouseexit { hide keyBindStatus }
  1199.             }
  1200.  
  1201.         itemDef {
  1202.               name orders
  1203.         group grpControls
  1204.               type ITEM_TYPE_BIND
  1205.         text "Escort:"
  1206.         cvar "taskEscort"
  1207.         rect 0 235 320 15
  1208.               textalign ITEM_ALIGN_RIGHT
  1209.               textalignx 187
  1210.         textaligny 12
  1211.         maxPaintChars 20
  1212.         textscale .25             
  1213.               forecolor 1 1 1 1
  1214.               visible 0 
  1215.         mouseenter { show keyBindStatus }
  1216.         mouseexit { hide keyBindStatus }
  1217.             }
  1218.  
  1219.         itemDef {
  1220.            name orders
  1221.         group grpControls
  1222.            type ITEM_TYPE_BIND
  1223.         text "I Have the Flag!"
  1224.         cvar "taskOwnFlag"
  1225.         rect 0 250 320 15
  1226.               textalign ITEM_ALIGN_RIGHT
  1227.               textalignx 187
  1228.         maxPaintChars 20
  1229.               textaligny 12
  1230.         textscale .25             
  1231.               forecolor 1 1 1 1
  1232.               visible 0 
  1233.         mouseenter { show keyBindStatus }
  1234.         mouseexit { hide keyBindStatus }
  1235.             }
  1236.     itemDef {
  1237.            name orders
  1238.         group grpControls
  1239.            type ITEM_TYPE_BIND
  1240.         text "Target Suicide"
  1241.         cvar "taskSuicide"
  1242.         rect 0 265 320 15
  1243.               textalign ITEM_ALIGN_RIGHT
  1244.               textalignx 187
  1245.         maxPaintChars 20
  1246.               textaligny 12
  1247.         textscale .25             
  1248.               forecolor 1 1 1 1
  1249.               visible 0 
  1250.         mouseenter { show keyBindStatus }
  1251.         mouseexit { hide keyBindStatus }
  1252.             }
  1253.  
  1254. itemDef {
  1255.     name ctr_chat
  1256.     text "Chat"
  1257.     type 1
  1258.     textscale .25
  1259.     group grpControlbutton
  1260.     style WINDOW_STYLE_FILLED
  1261.     background "ui/assets/button_back.tga"
  1262.     rect 300 25 50 20
  1263.     textalign 1
  1264.     textalignx 25
  1265.     textaligny 16
  1266.     forecolor 1 1 1 1
  1267.     backcolor .37 .1 .1 1 
  1268.     visible 1
  1269.     action { hide grpControls ; show chat }
  1270.     mouseEnter { setitemcolor ctr_chat backcolor .1 .37 .1 1 }
  1271.           mouseExit { setitemcolor ctr_chat backcolor .37 .1 .1 1 }
  1272.     }
  1273.         itemDef {
  1274.               name chat
  1275.         group grpControls
  1276.               type ITEM_TYPE_BIND
  1277.         text "Gesture:"
  1278.         cvar "+button3"
  1279.         rect 0 75 320 15
  1280.               textalign ITEM_ALIGN_RIGHT
  1281.               textalignx 187
  1282.         maxPaintChars 20
  1283.               textaligny 12
  1284.         textscale .25           
  1285.               forecolor 1 1 1 1
  1286.               visible 0 
  1287.         mouseenter { show keyBindStatus }
  1288.         mouseexit { hide keyBindStatus }
  1289.             }
  1290.     
  1291.     itemDef {
  1292.               name chat
  1293.         group grpControls
  1294.               type ITEM_TYPE_BIND
  1295.         text "Chat:"
  1296.         cvar "messagemode"
  1297.         rect 0 90 320 15
  1298.               textalign ITEM_ALIGN_RIGHT
  1299.               textalignx 187
  1300.         maxPaintChars 20
  1301.               textaligny 12
  1302.         textscale .25             
  1303.               forecolor 1 1 1 1
  1304.               visible 0 
  1305.         mouseenter { show keyBindStatus }
  1306.         mouseexit { hide keyBindStatus }
  1307.             }
  1308.  
  1309.     itemDef {
  1310.               name chat
  1311.         group grpControls
  1312.               type ITEM_TYPE_BIND
  1313.         text "Team Chat:"
  1314.         cvar "messagemode2"
  1315.         rect 0 105 320 15
  1316.               textalign ITEM_ALIGN_RIGHT
  1317.               textalignx 187
  1318.         maxPaintChars 20
  1319.               textaligny 12
  1320.         textscale .25            
  1321.               forecolor 1 1 1 1
  1322.               visible 0 
  1323.         mouseenter { show keyBindStatus }
  1324.         mouseexit { hide keyBindStatus }
  1325.             }
  1326.  
  1327.     itemDef {
  1328.               name chat
  1329.         group grpControls
  1330.               type ITEM_TYPE_BIND
  1331.         text "Target Chat:"
  1332.         cvar "messagemode3"
  1333.         rect 0 120 320 15
  1334.               textalign ITEM_ALIGN_RIGHT
  1335.               textalignx 187
  1336.         maxPaintChars 20
  1337.               textaligny 12
  1338.         textscale .25              
  1339.               forecolor 1 1 1 1
  1340.               visible 0 
  1341.             }
  1342.  
  1343.     itemDef {
  1344.               name chat
  1345.         group grpControls
  1346.               type ITEM_TYPE_BIND
  1347.         text "Attack Chat:"
  1348.         cvar "messagemode4"
  1349.         rect 0 135 320 15
  1350.               textalign ITEM_ALIGN_RIGHT
  1351.               textalignx 187
  1352.         maxPaintChars 20
  1353.               textaligny 12
  1354.         textscale .25             
  1355.               forecolor 1 1 1 1
  1356.               visible 0 
  1357.         mouseenter { show keyBindStatus }
  1358.         mouseexit { hide keyBindStatus }
  1359.             }
  1360.  
  1361. itemDef {
  1362.               name chat
  1363.         group grpControls
  1364.               type ITEM_TYPE_BIND
  1365.         text "Voice Taunt:"
  1366.         cvar "tauntTaunt"
  1367.         rect 0 150 320 15
  1368.               textalign ITEM_ALIGN_RIGHT
  1369.               textalignx 187
  1370.         maxPaintChars 20
  1371.               textaligny 12
  1372.         textscale .25              
  1373.               forecolor 1 1 1 1
  1374.               visible 0 
  1375.         mouseenter { show keyBindStatus }
  1376.         mouseexit { hide keyBindStatus }
  1377.             }
  1378.  
  1379. /*
  1380.  
  1381.     itemDef {
  1382.               name chat
  1383.         group grpControls
  1384.               type ITEM_TYPE_BIND
  1385.         text "Kill Insult:"
  1386.         cvar "tauntKillInsult"
  1387.         rect 0 150 320 15
  1388.               textalign ITEM_ALIGN_RIGHT
  1389.               textalignx 187
  1390.         maxPaintChars 20
  1391.               textaligny 12
  1392.         textscale .25              
  1393.               forecolor 1 1 1 1
  1394.               visible 0 
  1395.         mouseenter { show keyBindStatus }
  1396.         mouseexit { hide keyBindStatus }
  1397.             }
  1398.     itemDef {
  1399.               name chat 
  1400.         group grpControls
  1401.               type ITEM_TYPE_BIND
  1402.         text "Praise:"
  1403.         cvar "tauntPraise"
  1404.         rect 0 165 320 15
  1405.               textalign ITEM_ALIGN_RIGHT
  1406.               textalignx 187
  1407.         maxPaintChars 20
  1408.               textaligny 12
  1409.         textscale .25             
  1410.               forecolor 1 1 1 1
  1411.               visible 0 
  1412.         mouseenter { show keyBindStatus }
  1413.         mouseexit { hide keyBindStatus }
  1414.             }
  1415.     itemDef {
  1416.               name chat
  1417.         group grpControls
  1418.               type ITEM_TYPE_BIND
  1419.         text "General Taunt:"
  1420.         cvar "tauntTaunt"
  1421.         rect 0 180 320 15
  1422.               textalign ITEM_ALIGN_RIGHT
  1423.               textalignx 187
  1424.         maxPaintChars 20
  1425.               textaligny 12
  1426.         textscale .25              
  1427.               forecolor 1 1 1 1
  1428.               visible 0 
  1429.         mouseenter { show keyBindStatus }
  1430.         mouseexit { hide keyBindStatus }
  1431.             }
  1432.     itemDef {
  1433.               name chat
  1434.         group grpControls
  1435.               type ITEM_TYPE_BIND
  1436.         text "Death Insult:"
  1437.         cvar "tauntDeathInsult"
  1438.         rect 0 195 320 15
  1439.               textalign ITEM_ALIGN_RIGHT
  1440.               textalignx 187
  1441.         maxPaintChars 20
  1442.               textaligny 12
  1443.         textscale .25                
  1444.               forecolor 1 1 1 1
  1445.               visible 0 
  1446.         mouseenter { show keyBindStatus }
  1447.         mouseexit { hide keyBindStatus }
  1448.             }
  1449.  
  1450. */
  1451.  
  1452.  
  1453.  
  1454.  
  1455. itemDef {
  1456.           name yesno_message
  1457.           rect 0 55 300 15 
  1458.     text "Select the Item to Toggle to Yes or No"      
  1459.     forecolor 1 .75 0 1
  1460.     textscale .20
  1461.     textalignx 187
  1462.     textalign 1
  1463.     textaligny 10
  1464.     visible 0
  1465.           decoration 
  1466.     }
  1467.  
  1468. itemDef {
  1469.           name slider_message
  1470.           rect 0 55 300 15 
  1471.     text "Drag the Slider to Increase and Decrease"     
  1472.     forecolor 1 .75 0 1
  1473.     textscale .20
  1474.     textalignx 187
  1475.     textalign 1
  1476.     textaligny 10
  1477.     visible 0
  1478.           decoration 
  1479.     }
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485. }
  1486.  
  1487.  
  1488. }
  1489.